import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { OldageCheckComponent } from './check/check.component';
import { OldageDetailComponent } from './detail/detail.component';
import { EnclosureComponent } from './enclosure/enclosure.component';
const routes: Routes = [
  {
    path: "check",
    component: OldageCheckComponent
  },
  {
    path: "enclosure",
    component: EnclosureComponent
  },
  {
    path: ":index/detail/:operate",
    component: OldageDetailComponent
  },
  {
    path: ":index/detail/:operate/:nFundNo",
    component: OldageDetailComponent
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OldageRoutingModule { }
